
/**
 * @uuid pv的uuid
 * @reqUrl 上传地址
 * @version sdk版本号
 * @extra 额外字段
 * @historyPlugin history上报
 * @hashPlugin hash上报
 * @domPlugin dom事件上报
 * @errorPlugin jserror和promise.reject上报
 */

export interface defaultInterface {
  uuid?: string
  reqUrl: string
  version: string
  extra?: Record<string, any>
  historyPlugin: boolean
  hashPlugin: boolean
  domPlugin: boolean | domOptionsInterface
  errorPlugin: boolean
}

interface domOptionsInterface {
  is: boolean
  options?: string[]
  dataKey?: string
}

export interface optionsInterface extends Partial<defaultInterface> {
  reqUrl: string
}

export interface setDataKeyInterface {
  [key: string]: any
  event: string
  targetKey: string
}

export enum versionEnum {
  version = '1.0.1'
}
